package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.net.InetAddress;
import java.util.Map;

/*
 *  @Author: huxinjie
 *  @Data: 2025/4/19 16:09
 *  @Description:
 */
@Mapper
public interface UserMapper {


    @Select("select * from user where openid = #{openid}")
    User getByOpenid(String openid);

    void insert(User user);

    Integer countByMap(Map map);

    @Select("select * from user where id = #{userId}")
    User getById(Long userId);
}
